package com.financing.wap.service;

import java.math.BigDecimal;
import java.util.List;

import com.financing.wap.dto.ActivitiesGroupDTO;
import com.financing.wap.vo.ActivitiesGroupVO;

/**
 * 
 * @author ios
 *
 */
public interface IActivitesGroupService {
	
	/**
	 * 创建活动团队
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public String createActivitesGroup(ActivitiesGroupDTO agd) throws Exception;

	/**
	 * 添加团队成员
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public String addActivitiesGroupMember(ActivitiesGroupDTO agd) throws Exception;

	/**
	 * 查询自己组建的团
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupDTO> queryFaOwnGroup(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 查询分享页面团基本信息
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public ActivitiesGroupVO queryShareActivitiesGroup(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 查询组成员信息
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupVO> queryActivitiesGroupMemberInfo(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 没有fpGroupId参数时查询自己领取金额明细
	 * 有fpGroupId参数时查询团队领取金额明细
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public List<ActivitiesGroupVO> queryActivitiesGroupSendAmount(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 查询用户为领取红包总金额
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public BigDecimal queryOneUserNotGetGiftAmount(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 拆红包，放入红包表记录
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public String openGift(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 查询当前团获得红包和用户图像
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public BigDecimal getGroupAmount(ActivitiesGroupDTO agd) throws Exception;
	
	/**
	 * 更新团名称
	 * @param agd
	 * @return
	 * @throws Exception
	 */
	public int updateActivitiesGroupName(ActivitiesGroupDTO agd) throws Exception;
	
}
